using System;
using System.Collections.Generic;
using System.Text;
using NBusiness.Utilities;

namespace NBusiness.CodeDom
{
    [Serializable]
    public abstract class EntityUsing : EntityCompileUnit
    {
        private string _namespace;

        public string Namespace
        {
            get { return _namespace; }
            set { _namespace = value; }
        }

        private EntityRoot _root;
        public EntityRoot Root
        {
            get { return _root; }
            set { _root = value; }
        }

        #region object overrides
        public override string ToString()
        {
            return _namespace;
        }
        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
        public override bool Equals(object obj)
        {
            if (!(obj is EntityUsing)) return false;

            return Namespace.Equals((obj as EntityUsing).Namespace);
        }
        #endregion
    }
}
